package com.jewelry.service.impl;

import java.util.List;

import com.jewelry.dao.IConsumablesDAO;
import com.jewelry.service.IConsumablesService;
import com.jewelry.vo.ConsumablesVO;

public class ConsumablesServiceImpl implements IConsumablesService {

	private IConsumablesDAO consumablesDAO;

	public IConsumablesDAO getConsumablesDAO() {
		return consumablesDAO;
	}

	public void setConsumablesDAO(IConsumablesDAO consumablesDAO) {
		this.consumablesDAO = consumablesDAO;
	}
	
	//=======================================================

	@Override
	public int getConsumablesCount() {
		return consumablesDAO.getConsumablesCount();
	}

	@Override
	public List<ConsumablesVO> getConsumablesList() {
		return consumablesDAO.getConsumablesList();
	}

	@Override
	public void updateConsumablesQuantity(ConsumablesVO vo) {
		consumablesDAO.updateConsumablesQuantity(vo);
	}

	@Override
	public void addConsumables(ConsumablesVO vo) {
		consumablesDAO.addConsumables(vo);
	}

	@Override
	public String getConsumablesNameByID(int consumablesid) {
		return consumablesDAO.getConsumablesNameByID(consumablesid);
	}
	
}
